<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
 <%
    int userId=Integer.parseInt(session.getAttribute("userId").toString());
    System.out.println(userId);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登陆页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->


<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=viewport 
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!--  
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta content="telephone=no" name="format-detection">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
-->
<META name=apple-mobile-web-app-capable content=yes>
<META name=apple-mobile-web-app-status-bar-style content=black>
<META name=format-detection content=telephone=no>
<LINK rel=stylesheet type=text/css href="./css/phone.css">
<SCRIPT type=text/javascript src="./js/jquery-1.11.1.min.js"></SCRIPT>


<META name=GENERATOR content="MSHTML 9.00.8112.16672"></HEAD>

  </head>
  
  <body>
    

<FORM id=form1 method=post action=>

<DIV class="wrap colorwhite warpcontent">
<DIV id=bz class=srdz_bz>请输入手机号和密码登录</DIV>
<TABLE class=srdz_table>
  <TBODY>
  <TR>
    <TD class=srdz_table_td>手机号</TD>
    <TD><INPUT id=name class="forminput name" name=name value=> 
  </TD></TR>
  <TR>
    <TD class=srdz_table_td>密码</TD>
    <TD><INPUT id=mobile class="forminput mobile" name=mobile type=> 
    </TD></TR>
  <TR>
    <TD colSpan=2>
    <iput type="hidden" name="userId" value="<%=userId %>"/>
    <INPUT id=Button1 class="formsubmit save_btn" name=Button1 value=登录 type=submit> 
    <input type="submit" id="Button1" name="Button1" value="确认提交" id="sub" class="formsubmit save_btn">
    </TD></TR></TBODY></TABLE></DIV></FORM>
    
    <SCRIPT type=text/javascript>
        $(function () {
            $(".save_btn").click(function () {
                if ($(".name").val() == "" || $(".mobile").val() == "") {
                    alert("请输入手机号和密码！");
                    return false;
                }
            })
        })
    </SCRIPT>
    
  </body>
</html>
